package cn.lxh.pojo.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author lxh Create Time: 2023/12/22 18:08
 * 读取司机配置 (订单距离, 方圆距离)
 */
@Component // 该类交给spring的ioc容器管理
@ConfigurationProperties(prefix = "flying-car.driver") // 读取配置文件, 设置前缀
@Data
public class DriverProperties {

    /** 订单距离 */
    private Integer orderDistance;

    /** 方圆距离*/
    private Integer rangeDistance;
}
